/********************************************
 * 功能说明: 
 * 模块名称: 
 * 系统名称: 
 * 软件版权: 
 * 系统版本: 1.0.0
 * 开发人员: zhangfb
 * 开发时间: 2019/3/27 23:41
 * 审核人员: 
 * 相关文档: 
 * 修改记录: 修改日期 修改人员 修改说明
 *********************************************/
package com.hyacinth.schedule.exception;

/**
 * @author zhangfb
 * @version 1.0.0.1
 * @since JDK 1.8
 */
public class JobException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private String msg;
    private int code = 5000;

    public JobException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public JobException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public JobException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public JobException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


}
